import request from './request'
const keyData = {
  TONGJI: '/tongji',
  ZHEXIAN: '/liebiao',
  PVUV: '/pvuv',
}
//获取统计数据
export function getHomeTotal(data) {
  return request({
    url: keyData.TONGJI,
    method: 'get',
    data,
  })
}
//获取下面折线图的数据
export function getEchartsData(data) {
  return request({
    url: keyData.ZHEXIAN,
    method: 'get',
    data,
  })
}
//获取pv以及uv的数据
export function getUvWithPv(data) {
  return request({
    url: keyData.PVUV,
    method: 'get',
    data,
  })
}
//卡片数据
export function getCardList(data = {}) {
  return request({
    url: '/nav.conf.json',
    method: 'get',
    data,
  })
}
